from ronglian_sms_sdk import SmsSDK


def send_messages(mobile, code):
    accID = '2c94811c8a27cf2d018a3ef7bcf6076e'
    accToken = '5bf4960e30f94e3c928dbf814bd73f7e'
    appID = '2c94811c8a27cf2d018a3ef7be420775'
    sdk = SmsSDK(accID, accToken, appID)
    datas = (code, '2')
    res = sdk.sendMessage('1', mobile, datas)
    print(res)
